<template>
  <div>
    {{ status }}
  </div>
</template>

<script>
export default {
  props: {
    status: {
      validator(value) {
        return ["success", "fail", "warning"].includes(value);
      },
    },
  },
  methods: {
    foo() {
      this.$emit("getName", "我是任杰");
    },
  },
};
</script>

<style></style>
